//
// Side Navigation
// --------------------------------------------------

@side-nav-bg: rgb(68, 71, 76);
@nav-hover-bg: lighten(@side-nav-bg, 8%);

.side-nav {
	position: fixed;
	width: @side-nav-width;
	height: 100%;
	left: 0;
	top: @header-height;
	padding-bottom: 60px;
	background-color: @side-nav-bg;
	z-index: 1;
	overflow-y: auto;
	box-shadow: 1px 0 4px 0 rgba(0, 0, 0, 0.24);

	.top-view {
		position: relative;
		padding: 12px 25px 14px 25px;
		margin-bottom: 10px;
		background-color: @green;
		color: #fff;

		.bg {
			overflow: hidden;
		    position: absolute;
		    top: 0;
		    right: 0;
		    bottom: 0;
		    left: 0;
		    z-index: -1;
		}
	}

	.nav-item,
	.nav-head {
		position: relative;
		display: block;
		height: 46px;
		line-height: 46px;
		padding: 0 10px;
		color: #ccc;
		font-size: @font-size-base;
		text-decoration: none;
		cursor: pointer;
		transition: background-color .3s, color .3s;
		overflow: hidden;

		&:hover {
			background-color: @nav-hover-bg;
		}

		.nav-icon {
			display: inline-block;
			width: 44px;
			text-align: center;
			color: #ccc;
			font-size: @font-size-base + 3;
		}
	}

	.nav-head:after {
		position: absolute;
		display: block;
		top: 16px;
		right: 15px;
		width: 8px;
		height: 8px;
		content: '';
		border: 1px solid transparent;
		border-right-color: #fff;
		border-bottom-color: #fff;
		-webkit-transform: rotate(45deg);
		transform: rotate(45deg);
		transition: all .3s;
	}

	.nav-head.active:after {
		top: 21px;
		-webkit-transform: rotate(-135deg);
		transform: rotate(-135deg);
	}

	.nav-item.active {
		background-color: @nav-hover-bg;
		border-right: 3px solid @primary-color;
		color: #fff;

		&.nav-icon {
			color: #fff;
		}
	}

	.sub-nav {
		display: none;

		&.active {
			display: block;
		}
	}

	.lv2 {
		padding-left: 52px;
	}

	.lv3 {
		padding-left: 80px;
	}
}

.side-nav::-webkit-scrollbar {
    width: 0 !important;
}